<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jquery-1.10.1.js"></script>
    <script>

        $(document).ready(function(){ 
            // $("img") 获取img元素   .attr("src") 获取img的src属性
            console.info($("img").attr("src")) // document.getElementsByTagNamse("0).src
            alert(1);
        })

    </script>
</head>
<body>
    <img src="../imgs/1940-ipfprtp7236001.jpg" />
</body>
</html>